package org.darkforest.model;

import org.darkforest.common.util.DateUtil;
import org.darkforest.common.util.Page;

public class Admin extends Page<Admin>{

    private Integer adminId;
    private String adminName;
    private String adminPassword;
    private Integer adminLoginTime;
    private Integer adminLoginNum;
    private Boolean adminIsSuper;
    private Short adminGid;
    private Integer healthDeptId;

    private String adminLoginTimeStr;

    public Integer getAdminId() {
        return adminId;
    }
    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }
    public void setAdminName(String adminName) {
        this.adminName = adminName == null ? null : adminName.trim();
    }

    public String getAdminPassword() {
        return adminPassword;
    }
    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword == null ? null : adminPassword.trim();
    }

    public Integer getAdminLoginTime() {
        return adminLoginTime;
    }
    public void setAdminLoginTime(Integer adminLoginTime) {
        this.adminLoginTime = adminLoginTime;
    }

    public Integer getAdminLoginNum() {
        return adminLoginNum;
    }
    public void setAdminLoginNum(Integer adminLoginNum) {
        this.adminLoginNum = adminLoginNum;
    }

    public Boolean getAdminIsSuper() {
        return adminIsSuper;
    }
    public void setAdminIsSuper(Boolean adminIsSuper) {
        this.adminIsSuper = adminIsSuper;
    }

    public Short getAdminGid() {
        return adminGid;
    }
    public void setAdminGid(Short adminGid) {
        this.adminGid = adminGid;
    }

    public Integer getHealthDeptId() {
        return healthDeptId;
    }
    public void setHealthDeptId(Integer healthDeptId) {
        this.healthDeptId = healthDeptId;
    }

    public String getAdminLoginTimeStr() {
        return DateUtil.toIntDateString(getAdminLoginTime());
    }
    public void setAdminLoginTimeStr(String adminLoginTimeStr) {
        this.adminLoginTimeStr = adminLoginTimeStr;
    }
}